<html>
<head>
<meta name="Generator" content="QQ 80342014" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>

<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />

<?php echo $this->smarty_insert_scripts(array('files'=>'transport_jquery.js,common.js,user.js')); ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<link href="themes/view/css/sheep_details.css" rel="stylesheet" type="text/css" />
</head>
<style>
#pay_zhifu input[type=button] ,#pay_zhifu input[type=submit] {
    width: 100%;
    margin: 15px auto;
    padding: 5px 0;
    color: #FFF;
    background-color: #2CB035;
    line-height: 30px;
    border-radius: 4px;
    border: 0 none;
    font-size: 20px;
    font-weight: 500;
}
</style>
<body>
<?php echo $this->fetch('library/header.lbi'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery.json.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'transport_jquery.js')); ?>

<?php if ($this->_var['action'] == 'buy'): ?>

<article class="" style="display: block;" ui-view="" data-current-cache="false"><section class="" avalonctrl="payorder">
	<div class="prepay">
	
	<div class="top-up-money" style="border-right: none;border-left:none;">
		支付金额<span class="money"><?php echo $this->_var['sheep_cart']['sheep_price']; ?></span>
	</div>
	
	<div class="pay-style-title">请选择付款方式</div>
	<div class="pay-style">
		<?php if ($this->_var['payment_list']): ?>
			<?php $_from = $this->_var['payment_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>
			<div class="pay-style-line">
				<div style="padding: 14px 0">
					<?php if ($this->_var['item']['pay_code'] == 'balance'): ?>
						<span class="syb-icon"></span><?php echo $this->_var['item']['pay_name']; ?>(余额：<?php echo $this->_var['info']['user_money']; ?>)
					<?php else: ?>
						<span class="<?php echo $this->_var['item']['pay_code']; ?>-icon"></span><?php echo $this->_var['item']['pay_name']; ?>
					<?php endif; ?> 
					<span class="float-r">
						<i class="checkbox <?php if ($this->_var['item']['pay_code'] == 'balance'): ?> check-cur<?php endif; ?>" pay_code="<?php echo $this->_var['item']['pay_code']; ?>"></i>
					</span>
				</div>
			</div> 
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
		<?php endif; ?>
		
 
		<div class="top-up-money" id="top-up-money" style="border-right: none;border-left:none;margin-top: 0;border-top: none;">
			支付密码<input style="width: 63%;margin-left: 15px;" id="pay_password" name="pay_password" type="password" class="money" placeholder="请输入/设置支付密码">
		</div>
		<input type="hidden" name="act" value="done">
		<input type="hidden" name="id" id="cart_id" value="<?php echo $this->_var['sheep_cart']['id']; ?>">
		<input type="hidden" name="pay_code" id="pay_code" value="balance" >
		<div class="center" id="pay_zhifus" style="padding:0 12px;margin-top: 10px;">
			<button class="pay-btn">立即支付</button>
		</div>
		<div class="center"id="pay_zhifu"  style="padding:0 12px;margin-top: 10px;">
			 
		</div>
	</div>
</div>
</section>
</article>

<?php endif; ?>





<?php if ($this->_var['action'] == 'done'): ?>




<?php endif; ?>


<script type="text/javascript" src="themes/view/js/user.js"></script>
</body>
</html>